

using System;
using System.Collections.Generic;
using System.Text;

namespace Pbdms.NetworkDealer
{
    /// <summary>
    /// define the format for a ReceivedRequest object
    /// </summary>
    public class ReceivedRequest
    {
        int requestId;
        DateTime receivedTime;
        System.Net.IPAddress ipFrom;

        /// <summary>
        /// get or set the id of the request
        /// </summary>
        public int RequestId
        {
            get { return requestId; }
            set { requestId = value; }
        }
        /// <summary>
        /// get or set the ReceivedTime (at which  the request was received)
        /// </summary>
        public DateTime ReceivedTime
        {
            get { return receivedTime; }
            set { receivedTime = value; }
        }
        /// <summary>
        /// get the Ip address from which the message has been sent
        /// </summary>
        public System.Net.IPAddress IpFrom
        {
            get { return ipFrom; }
            set { ipFrom = value; }
        }
        /// <summary>
        /// create an instance
        /// </summary>
        /// <param name="requestId"></param>
        /// <param name="receivedTime"></param>
        /// <param name="ipFrom"></param>
        public ReceivedRequest(int requestId, DateTime receivedTime, System.Net.IPAddress ipFrom)
        {
            this.requestId = requestId;
            this.receivedTime = receivedTime;
            this.ipFrom = ipFrom;
        }

    }
}
